package com.morningstar.system.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.morningstar.system.dao.entity.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单表 数据层
 *
 * @author ruoyi
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 查询用户权限菜单
     *
     * @param userId 用户Id
     * @return 用户菜单
     */
    List<SysMenu> selectUserMenus(@Param("userId") Long userId);
}
